package com.alibaba.cloud.ai.example.flight.model.command;

import com.alibaba.cloud.ai.example.flight.model.Flight;

public class FlightCommand {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 后续尝试提取更多的航班信息
     */
    public Flight convert2Flight() {
        return new Flight(getName(), "2024-11-14", "青岛", "上海", "已确认", "ECONOMY");
    }
}
